package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysTopicTypeMapper;
import com.ruoyi.system.domain.SysTopicType;
import com.ruoyi.system.service.ISysTopicTypeService;
import com.ruoyi.common.core.text.Convert;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-26
 */
@Service
public class SysTopicTypeServiceImpl implements ISysTopicTypeService 
{
    @Autowired
    private SysTopicTypeMapper sysTopicTypeMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param typeid 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public SysTopicType selectSysTopicTypeByTypeid(Long typeid)
    {
        return sysTopicTypeMapper.selectSysTopicTypeByTypeid(typeid);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param sysTopicType 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<SysTopicType> selectSysTopicTypeList(SysTopicType sysTopicType)
    {
        return sysTopicTypeMapper.selectSysTopicTypeList(sysTopicType);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param sysTopicType 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertSysTopicType(SysTopicType sysTopicType)
    {
        return sysTopicTypeMapper.insertSysTopicType(sysTopicType);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param sysTopicType 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateSysTopicType(SysTopicType sysTopicType)
    {
        return sysTopicTypeMapper.updateSysTopicType(sysTopicType);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param typeids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteSysTopicTypeByTypeids(String typeids)
    {
        return sysTopicTypeMapper.deleteSysTopicTypeByTypeids(Convert.toStrArray(typeids));
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param typeid 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteSysTopicTypeByTypeid(Long typeid)
    {
        return sysTopicTypeMapper.deleteSysTopicTypeByTypeid(typeid);
    }
}
